def txt_write(target_file: str, write_data: list, optional: str = "append", column: list = None):
    if optional not in ["cover", "append"]:
        msg = f"仅支持 cover 和  append 模式， 不支持当前模式: {optional} "
        raise RuntimeWarning(msg)

    if "cover" == optional:
        with open(target_file, "w", encoding="utf-8") as f:
            if column:
                f.write(" ".join(column))
            for d in write_data:
                f.write(f"{str(d)} \n")
    elif "append" == optional:
        with open(target_file, "a", encoding="utf-8") as f:
            if column:
                f.write(" ".join(column))
            for d in write_data:
                f.write(f"{str(d)} \n")
